/* 
 * File:   FractalPrinterInverse.cpp
 * Author: amouro-m
 * 
 * Created on 23 mai 2010, 10:09
 */

#include "FractalPrinterInverse.h"

FractalPrinterInverse::FractalPrinterInverse(SDL_Surface* area):
FractalPrinter(area)
{}

FractalPrinterInverse::FractalPrinterInverse(SDL_Surface* area, Fractal* fractal):
FractalPrinter(area, fractal)
{}

FractalPrinterInverse::~FractalPrinterInverse() {}

unsigned int
FractalPrinterInverse::coordX(double x) const
{
    return (_fractal->_xmax - x) * _coefx_to_area;
}

unsigned int
FractalPrinterInverse::coordY(double y) const
{
    return (_fractal->_ymax - y) * _coefy_to_area;
}

